From b3481c1afae44bbdcfdd3c6efc9ca8b1341b2cc5 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Mon, 24 Jan 2022 12:46:50 +0100 Subject: [PATCH] Add support for Hurd --- .../patches/0009-Support-Hurd-in-qmake.patch | 54 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 55 insertions(+) create mode 100644 debian/patches/0009-Support-Hurd-in-qmake.patch diff --git a/debian/patches/0009-Support-Hurd-in-qmake.patch b/debian/patches/0009-Support-Hurd-in-qmake.patch new file mode 100644 index 000000000..b987ca428 --- /dev/null +++ b/debian/patches/0009-Support-Hurd-in-qmake.patch @@ -0,0 +1,54 @@ +From: Jochen Sprickerhof +Date: Mon, 24 Jan 2022 12:00:17 +0100 +Subject: Support Hurd in qmake + +--- + GPSBabel.pro | 4 ++-- + libusb.pri | 6 +++--- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/GPSBabel.pro b/GPSBabel.pro +index 98b25c7..2bd178e 100644 +--- a/GPSBabel.pro ++++ b/GPSBabel.pro +@@ -281,7 +281,7 @@ HEADERS += $$FILTER_HEADERS + + CONFIG(release, debug|release): DEFINES *= NDEBUG + +-macx|linux|openbsd { ++macx|linux|openbsd|hurd { + if (equals(MAKEFILE_GENERATOR, XCODE)) { + # "Configure tests are not supported with the XCODE Makefile generator" + # assume we have the following headers +@@ -354,7 +354,7 @@ QMAKE_EXTRA_TARGETS += check-vtesto + QMAKE_CLEAN += $${OUT_PWD}/testo.d/*.vglog + + # build the compilation data base used by clang tools including clang-tidy. +-macx|linux|openbsd{ ++macx|linux|openbsd|hurd { + compile_command_database.target = compile_commands.json + compile_command_database.commands = $(MAKE) clean; bear $(MAKE) + QMAKE_EXTRA_TARGETS += compile_command_database +diff --git a/libusb.pri b/libusb.pri +index a6604f9..c66a71e 100644 +--- a/libusb.pri ++++ b/libusb.pri +@@ -1,7 +1,7 @@ +-macx|linux|openbsd { ++macx|linux|openbsd|hurd { + !defined(WITH_LIBUSB, var) { + macx: WITH_LIBUSB = included +- linux|openbsd: WITH_LIBUSB = system ++ linux|openbsd|hurd: WITH_LIBUSB = system + } + equals(WITH_LIBUSB, no) { + message("libusb-1.0 disabled") +@@ -14,7 +14,7 @@ macx|linux|openbsd { + PKGCONFIG += libusb-1.0 + DEFINES += LIBUSB_H_INCLUDE=$$shell_quote() + } else { +- linux|openbsd { ++ linux|openbsd|hurd { + equals(WITH_LIBUSB, system) { + LIBS += "-lusb-1.0" + DEFINES += LIBUSB_H_INCLUDE=$$shell_quote() diff --git a/debian/patches/series b/debian/patches/series index 9f5bc4dc8..6759ed15f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ gmapbase.html-location Disable-donation-nagging 0007-Add-workaround-for-failing-test-on-i386.patch 0008-Add-Debian-build-flags.patch +0009-Support-Hurd-in-qmake.patch -- 2.30.2